<?php



$result = Db::table('think_user')->where(function ($query) {
  $query->where('id', 1)->whereor('id', 2);
})->whereOr(function ($query) {
  $query->where('name', 'like', 'think')->whereOr('name', 'like', 'thinkphp');
})->select();